//
//  YYRPickPhotoTool.h
//  SISSAPP
//
//  Created by 袁应荣 on 2019/7/3.
//  Copyright © 2019 优房网. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <Photos/Photos.h>

NS_ASSUME_NONNULL_BEGIN

@interface YYRPickPhotoTool : NSObject

+ (void)showPickPhotoToolWithViewController:(UIViewController *)viewController maxPhotoCount:(NSUInteger)maxPhotoCount choosePhotoHandler:(void(^)(NSMutableArray<UIImage *> *selectedImages, NSMutableArray<PHAsset *> *selectedAccest))choosePhotoHandler takePhotoHandler:(void(^)(NSMutableArray<UIImage *> *selectedImages, NSMutableArray<PHAsset *> *selectedAccest))takePhotoHandler deleteImage:(void(^)(void(^deleteHandler)(NSUInteger index)))deleteImage tag:(NSInteger)tag;

@end


NS_ASSUME_NONNULL_END

@interface UIViewController (YYRImagePickTool)

@property (nonatomic, strong, readonly) NSMutableArray<UIImage *> *yyr_selectedImages;
@property (nonatomic, strong, readonly) NSMutableArray<PHAsset *> *yyr_selectedAccests;

@end
